package moxl.parser.assemblers.comment;

import moxl.parser.assemblers.AssemblerStateException;

public class CommentAssemblerStateException extends AssemblerStateException
{
	private final CommentAssemblerContext ctx;

	public CommentAssemblerStateException(CommentAssemblerContext ctx)
    {
		super(ctx.getLocation());
		this.ctx = ctx;
    }

	@Override
    public String getMessage()
    {
	    return createMessage(ctx.getState().toString(), ctx.getToken());
    }

}
